package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.LhqArDeviceListMapper;
import com.ruoyi.system.domain.LhqArDeviceList;
import com.ruoyi.system.service.ILhqArDeviceListService;
import com.ruoyi.common.core.text.Convert;

/**
 * AR设备列Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-11-21
 */
@Service
public class LhqArDeviceListServiceImpl implements ILhqArDeviceListService 
{
    @Autowired
    private LhqArDeviceListMapper lhqArDeviceListMapper;

    /**
     * 查询AR设备列
     * 
     * @param id AR设备列ID
     * @return AR设备列
     */
    @Override
    public LhqArDeviceList selectLhqArDeviceListById(Long id)
    {
        return lhqArDeviceListMapper.selectLhqArDeviceListById(id);
    }

    /**
     * 查询AR设备列列表
     * 
     * @param lhqArDeviceList AR设备列
     * @return AR设备列
     */
    @Override
    public List<LhqArDeviceList> selectLhqArDeviceListList(LhqArDeviceList lhqArDeviceList)
    {
        return lhqArDeviceListMapper.selectLhqArDeviceListList(lhqArDeviceList);
    }

    /**
     * 新增AR设备列
     * 
     * @param lhqArDeviceList AR设备列
     * @return 结果
     */
    @Override
    public int insertLhqArDeviceList(LhqArDeviceList lhqArDeviceList)
    {
        return lhqArDeviceListMapper.insertLhqArDeviceList(lhqArDeviceList);
    }

    /**
     * 修改AR设备列
     * 
     * @param lhqArDeviceList AR设备列
     * @return 结果
     */
    @Override
    public int updateLhqArDeviceList(LhqArDeviceList lhqArDeviceList)
    {
        lhqArDeviceList.setUpdateTime(DateUtils.getNowDate());
        return lhqArDeviceListMapper.updateLhqArDeviceList(lhqArDeviceList);
    }

    /**
     * 删除AR设备列对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteLhqArDeviceListByIds(String ids)
    {
        return lhqArDeviceListMapper.deleteLhqArDeviceListByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除AR设备列信息
     * 
     * @param id AR设备列ID
     * @return 结果
     */
    @Override
    public int deleteLhqArDeviceListById(Long id)
    {
        return lhqArDeviceListMapper.deleteLhqArDeviceListById(id);
    }
}
